const {defineConfig} = require("@vue/cli-service");
module.exports = defineConfig({
    publicPath: "./",
    outputDir: "dist",
    assetsDir: "static",
    transpileDependencies: true,
    lintOnSave: false,
    // lintOnSave: process.env.NODE_ENV === 'development',
    productionSourceMap: false,
    devServer: {
        port: 8090,
        open: true,
        historyApiFallback: true,
        proxy: {
            // 配置跨域处理 可以设置你想要代理的接口
            "/api": {
                target: "http://192.168.31.148:8080",
                changeOrigin: true,
                pathRewrite: {
                    "^/api": "",
                },
            },
        },
    },
});
